ti: k3: drivers: sec_proxy: Switch error messages
authorAndrew F. Davis <[email protected]>
Fri, 4 Jan 2019 18:39:54 +0000 (12:39 -0600)
committerAndrew F. Davis <[email protected]>
Mon, 21 Jan 2019 18:05:43 +0000 (12:05 -0600)
The logic is correct here, but the error messages are
reversed, switch them.

Signed-off-by: Andrew F. Davis <[email protected]>
Acked-by: Nishanth Menon <[email protected]>
plat/ti/k3/common/drivers/sec_proxy/sec_proxy.c

index 5dd54d4ff3a53dc5a4d2a6a28984b77a0fc5b6a9..2a013ed0c657a123bbdd6152de720d8873c87c3f 100644 (file)
@@ -139,10 +139,10 @@ static inline int k3_sec_proxy_verify_thread(struct k3_sec_proxy_thread *spt,
        if ((mmio_read_32(spt->scfg + SCFG_THREAD_CTRL) & SCFG_THREAD_CTRL_DIR_MASK)
            != (dir << SCFG_THREAD_CTRL_DIR_SHIFT)) {
                if (dir)
-                       ERROR("Trying to receive data on tx Thread %d\n",
+                       ERROR("Trying to send data on RX Thread %d\n",
                              spt->id);
                else
-                       ERROR("Trying to send data on rx Thread %d\n",
+                       ERROR("Trying to receive data on TX Thread %d\n",
                              spt->id);
                return -EINVAL;
        }